import request from '@/utils/request';

export default {
  //分页获取评论信息
  getFrontComment(pageNo, pageSize, courseId) {
    return request({
      url: `/eduservice/commentfront/getFrontComment/${pageNo}/${pageSize}`,
      method: 'get',
      params: { courseId }
    })
  },
  //提交评论
  commitComment(data) {
    return request({
      url: `/eduservice/commentfront/commitComment`,
      method: 'post',
      data: data
    })
  },
}